package com.haiyou.dc.aggregate.linklist;

public class Main2 {

    public static void main(String[] args) throws InterruptedException {

        MyList<Integer> list = new MyLinkList<>();
        list.add(0, 0);
        list.add(1, 1);
        list.add(2, 2);
        list.add(3, 3);
        list.add(4);
//
//        list.remove(2);

        System.out.println(list);

        list.clear();
        System.out.println(list);
        System.out.println("-----");

        Thread.sleep(3000);

    }
}
